import java.awt.Color;
import java.awt.GridLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;



/** pour faire des JPanel*/
	class BarreMise extends JPanel
	{
		public Color gris = new Color (128, 128, 128,255);
		public Color vert = new Color(0,130,0);
		public Color turquoise = new Color(64,224,208);
		private Ptext2 credit;
		private Ptext2 misetotal;
		private Ptext2 gain;
		public BarreMise(String credit1, String misetotal1,String gain1 )
		{
			credit=new Ptext2(credit1,turquoise,JLabel.LEFT);
			misetotal=new Ptext2(misetotal1,turquoise,JLabel.LEFT);
			gain=new Ptext2(gain1,turquoise,JLabel.LEFT);
			this.setBackground(vert);
			this.setLayout(new GridLayout(1,10,2,0));
			this.add(new Ptext("",vert,vert,JLabel.CENTER));
			this.add(new Ptext2("Portefeuille",Color.white,JLabel.CENTER));
			this.add(credit);
			this.add(new Ptext("",vert,vert,JLabel.CENTER));
			this.add(new Ptext2("Mise",Color.white,JLabel.CENTER));
			this.add(misetotal);
			this.add(new Ptext("",vert,vert,JLabel.CENTER));
			this.add(new Ptext2("Gain",Color.white,JLabel.CENTER));
			this.add(gain);
			this.add(new Ptext("",vert,vert,JLabel.CENTER));
		}
		public void setCredit(String Credit)
		{
			credit.setText(Credit);
		}
		public void setMise(String mise)
		{
			misetotal.setText(mise);
		}
		public void setGain(String argent)
		{
			misetotal.setText(argent);
		}
	}